<template>
    <div class="child">
        <h3>我是子组件</h3>
        <GrandChild />
    </div>
</template>

<script setup lang="ts" name="Child">
import GrandChild from './GrandChild.vue'
// 注意：子组件中不用编写任何东西，是不受到任何打扰的
</script>

<style scoped>
.child {
    margin-top: 20px;
    background-color: skyblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
}
</style>
